package guowenlong.golf.ui.personal;

import android.content.Intent;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import guowenlong.golf.R;
import guowenlong.golf.ui.personal.changephone.ChangePhoneActivity;
import guowenlong.golf.ui.personal.changepsaaword.ChangePasswordActivity;
import me.wenlong.mixutils.mvp.BaseActivity;

/**
 * des   : 描述 author: Administrator email : guowenlong20000@gmail.com time  : 2017年03月08日 下午 9:27.
 */

public class SafeActivity extends BaseActivity {

  @BindView(R.id.tv_back)
  TextView tvBack;
  @BindView(R.id.ll_changphone)
  LinearLayout llChangphone;
  @BindView(R.id.ll_changpassword)
  LinearLayout llChangpassword;

  @Override
  protected int getContentView(Bundle savedInstanceState) {
    return R.layout.activity_safe;
  }

  @Override
  protected void initView(Bundle savedInstanceState) {

  }

  @Override
  protected void initData() {

  }

  @OnClick({R.id.tv_back, R.id.ll_changphone, R.id.ll_changpassword})
  public void onClick(android.view.View view) {
    switch (view.getId()) {
      case R.id.tv_back:
        finish();
        break;
      case R.id.ll_changphone:
        startActivity(new Intent(this, ChangePhoneActivity.class));
        break;
      case R.id.ll_changpassword:
        startActivity(new Intent(this, ChangePasswordActivity.class));
        break;
    }
  }
}